<template>
  <el-menu
      :default-active="activeIndex"
      class="el-menu-demo"
      mode="horizontal"
      @select="handleSelect"
  >
    <el-menu-item index="1" @click="toAss">我发布的援助</el-menu-item>
    <el-menu-item index="2" @click="toHelp">我帮助过的其他人</el-menu-item>
  </el-menu>
  <div class="assAndHelp">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "UserAssis",
  data() {
    return {
      activeIndex: '1',
    }
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath)
    },
    toAss() {
      this.$router.push("/front/userInfo/userAssis/UserAss")
    },
    toHelp() {
      this.$router.push("/front/userInfo/userAssis/UserHelp")
    }
  }
}
</script>

<style>

.assisnavtopbox {
  margin: 0 auto;
  width: 1200px;
}

.assAndHelp {
  background: #ffff;
}
</style>